<?php

include_once($cfgPaths['lib'].'cms/type/cmsEditType.o.inc.php');

class cmsEditCheckboxType extends cmsEditType {

 function registerFields () {
   $map[] = $this->name.'checkbox';
   $this->map = &$map;
 }

 function render_html () {
  $html  = '<div class="xicstypeplugin">'."\n";
  $html .= '    <h3 style="float:left">'.$this->descr.':</h3>'.$this->showFields()."\n";
  $html .= '          <input style="margin-top:11px" type="checkbox" value="Y" tabindex="'.$this->sender->getNextTabindex($this->name.'checkbox').'" name="'.$this->name.'checkbox" ';
  if ($this->getValue($this->name.'checkbox') == 'Y')
    $html .= ' checked="checked"';
  $html .= '/><div style="clear:both"></div>'."\n";
  $html  .= '</div><!-- / type checkbox -->'."\n";
  return $html;
 }

 function render_javascript () {
 }

}


?>
